//
//  iOSToast.h
//  ios toast
//
//  Created by 陈 翔 on 12-7-8.
//  Copyright (c) 2012年 湖北理工学院. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kDuration           3.0
#define kPosition_Top		@"top"
#define kPosition_Center	@"center"
#define kPosition_Bottom	@"bottom"
#define kDefaultPosition    kPosition_Bottom

@interface UIView(Toast)

// each makeToast method creates a view and displays it as toast
- (void)makeToast:(NSString *)message duration:(CGFloat)interval position:(id)position title:(NSString *)title image:(UIImage *)image;
- (void)makeToast:(NSString *)message duration:(CGFloat)interval position:(id)position;

// the showToast methods display any view as toast
- (void)showToast:(UIView *)toast;
- (void)showToast:(UIView *)toast duration:(CGFloat)interval position:(id)point;
@end
